import { DEFAULT_LAYOUT } from '../base'

const DASHBOARD = {
	path: '/dashboard',
	name: 'dashboard',
	component: DEFAULT_LAYOUT,
	meta: {
		requiresAuth: true,
		icon: 'icon-dashboard',
		text: '仪表盘',
		order: 0,
	},
	children: [
		{
			path: 'workplace',
			name: 'Workplace',
			component: () => import('@/views/dashboard/workplace/index.vue'),
			meta: {
				requiresAuth: true,
				roles: ['*'],
				text: '工作台',
			},
		},
	],
}

export default DASHBOARD
